{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}D:\Dropbox\Tradeoff replication\Stata_log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}29 Jan 2023, 15:25:47
{txt}
{com}. 
. use "tradeoff_data.dta"
{txt}
{com}. ** randomly assigned officials
. tab QK

   {txt}Vignette {c |}
bureaucrats {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
        CIT {c |}{res}        699       12.65       12.65
{txt}        CCT {c |}{res}        687       12.43       25.08
{txt}        CIM {c |}{res}        675       12.21       37.29
{txt}        CCM {c |}{res}        707       12.79       50.08
{txt}        HIT {c |}{res}        721       13.05       63.13
{txt}        HCT {c |}{res}        681       12.32       75.45
{txt}        HIM {c |}{res}        677       12.25       87.70
{txt}        HCM {c |}{res}        680       12.30      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      5,527      100.00
{txt}
{com}. 
. *1 (CIT): corrupt-and-incompetent township leaders
. *2 (CCT): corrupt-yet-competent township leaders
. *3 (CIM): corrupt-and-incompetent municipal mayors
. *4 (CCM): corrupt-yet-competent municipal mayors
. *5 (HIT): honest-yet-incompetent township leaders
. *6 (HCT): honest-and-competent township leaders
. *7 (HIM): honest-yet-incompetent municipal mayors
. *8 (HCM): honest-and-competent municipal mayors
. 
. 
. ** attribute: competence (0=incompetent; 1=competent)
. tab competent 

 {txt}Attribute: {c |}
 competence {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}      2,772       50.15       50.15
{txt}          1 {c |}{res}      2,755       49.85      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      5,527      100.00
{txt}
{com}. 
. ** attribute: corruption (0=corrupt; 1= honest)
. tab corrupt

 {txt}Attribute: {c |}
 corruption {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}      2,759       49.92       49.92
{txt}          1 {c |}{res}      2,768       50.08      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      5,527      100.00
{txt}
{com}. 
. ** attribute: government levels (0= township; 1=municipality)
. tab rank

 {txt}Attribute: {c |}
 government {c |}
     levels {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}      2,788       50.44       50.44
{txt}          1 {c |}{res}      2,739       49.56      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      5,527      100.00
{txt}
{com}. 
. 
. *******************************************************
. **********  Table 3: Demotion *************************
. *******************************************************
. 
. quietly reg demotion i.QK, r
{txt}
{com}. * show proportion in each cell
. margins, over(QK) 
{res}
{txt}Predictive margins{col 49}Number of obs{col 67}= {res}     5,527
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:over}:{space 1}{res:QK}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}CIT  {c |}{col 14}{res}{space 2} .8855508{col 26}{space 2} .0120501{col 37}{space 1}   73.49{col 46}{space 3}0.000{col 54}{space 4} .8619279{col 67}{space 3} .9091736
{txt}{space 8}CCT  {c |}{col 14}{res}{space 2} .6550218{col 26}{space 2} .0181493{col 37}{space 1}   36.09{col 46}{space 3}0.000{col 54}{space 4} .6194421{col 67}{space 3} .6906016
{txt}{space 8}CIM  {c |}{col 14}{res}{space 2} .8696296{col 26}{space 2} .0129694{col 37}{space 1}   67.05{col 46}{space 3}0.000{col 54}{space 4} .8442045{col 67}{space 3} .8950547
{txt}{space 8}CCM  {c |}{col 14}{res}{space 2} .6831683{col 26}{space 2} .0175099{col 37}{space 1}   39.02{col 46}{space 3}0.000{col 54}{space 4} .6488421{col 67}{space 3} .7174946
{txt}{space 8}HIT  {c |}{col 14}{res}{space 2} .7295423{col 26}{space 2} .0165547{col 37}{space 1}   44.07{col 46}{space 3}0.000{col 54}{space 4} .6970885{col 67}{space 3} .7619961
{txt}{space 8}HCT  {c |}{col 14}{res}{space 2} .2011747{col 26}{space 2} .0153728{col 37}{space 1}   13.09{col 46}{space 3}0.000{col 54}{space 4}  .171038{col 67}{space 3} .2313115
{txt}{space 8}HIM  {c |}{col 14}{res}{space 2} .6750369{col 26}{space 2} .0180136{col 37}{space 1}   37.47{col 46}{space 3}0.000{col 54}{space 4} .6397231{col 67}{space 3} .7103507
{txt}{space 8}HCM  {c |}{col 14}{res}{space 2}     .175{col 26}{space 2} .0145816{col 37}{space 1}   12.00{col 46}{space 3}0.000{col 54}{space 4} .1464143{col 67}{space 3} .2035857
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. /*calculate column differenes*/
. 
. reg demotion i.QK if QK==1|QK==2,r 

{txt}Linear regression                               Number of obs     = {res}     1,386
                                                {txt}F(1, 1384)        =  {res}   111.98
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0753
                                                {txt}Root MSE          =    {res} .40417

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}CCT  {c |}{col 14}{res}{space 2} -.230529{col 26}{space 2} .0217853{col 37}{space 1}  -10.58{col 46}{space 3}0.000{col 54}{space 4}-.2732647{col 67}{space 3}-.1877932
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .8855508{col 26}{space 2}   .01205{col 37}{space 1}   73.49{col 46}{space 3}0.000{col 54}{space 4} .8619125{col 67}{space 3} .9091891
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg demotion i.QK if QK==3|QK==4,r

{txt}Linear regression                               Number of obs     = {res}     1,382
                                                {txt}F(1, 1380)        =  {res}    73.23
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0497
                                                {txt}Root MSE          =    {res} .40786

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}CCM  {c |}{col 14}{res}{space 2}-.1864613{col 26}{space 2} .0217899{col 37}{space 1}   -8.56{col 46}{space 3}0.000{col 54}{space 4}-.2292063{col 67}{space 3}-.1437164
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .8696296{col 26}{space 2} .0129694{col 37}{space 1}   67.05{col 46}{space 3}0.000{col 54}{space 4} .8441878{col 67}{space 3} .8950715
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg demotion i.QK if QK==5|QK==6,r

{txt}Linear regression                               Number of obs     = {res}     1,402
                                                {txt}F(1, 1400)        =  {res}   547.00
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2798
                                                {txt}Root MSE          =    {res} .42401

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HCT  {c |}{col 14}{res}{space 2}-.5283676{col 26}{space 2} .0225914{col 37}{space 1}  -23.39{col 46}{space 3}0.000{col 54}{space 4}-.5726842{col 67}{space 3}-.4840509
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .7295423{col 26}{space 2} .0165545{col 37}{space 1}   44.07{col 46}{space 3}0.000{col 54}{space 4} .6970679{col 67}{space 3} .7620167
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg demotion i.QK if QK==7|QK==8,r

{txt}Linear regression                               Number of obs     = {res}     1,357
                                                {txt}F(1, 1355)        =  {res}   465.51
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2559
                                                {txt}Root MSE          =    {res} .42668

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HCM  {c |}{col 14}{res}{space 2}-.5000369{col 26}{space 2}  .023176{col 37}{space 1}  -21.58{col 46}{space 3}0.000{col 54}{space 4}-.5455017{col 67}{space 3}-.4545721
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6750369{col 26}{space 2} .0180139{col 37}{space 1}   37.47{col 46}{space 3}0.000{col 54}{space 4} .6396989{col 67}{space 3}  .710375
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. /*row differences*/
. reg demotion i.QK if QK==1|QK==5,r

{txt}Linear regression                               Number of obs     = {res}     1,420
                                                {txt}F(1, 1418)        =  {res}    58.05
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0390
                                                {txt}Root MSE          =    {res} .38767

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HIT  {c |}{col 14}{res}{space 2}-.1560085{col 26}{space 2} .0204755{col 37}{space 1}   -7.62{col 46}{space 3}0.000{col 54}{space 4} -.196174{col 67}{space 3} -.115843
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .8855508{col 26}{space 2} .0120498{col 37}{space 1}   73.49{col 46}{space 3}0.000{col 54}{space 4} .8619134{col 67}{space 3} .9091882
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg demotion i.QK if QK==2|QK==6,r

{txt}Linear regression                               Number of obs     = {res}     1,368
                                                {txt}F(1, 1366)        =  {res}   364.09
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2102
                                                {txt}Root MSE          =    {res} .44018

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HCT  {c |}{col 14}{res}{space 2}-.4538471{col 26}{space 2} .0237851{col 37}{space 1}  -19.08{col 46}{space 3}0.000{col 54}{space 4}-.5005063{col 67}{space 3}-.4071879
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6550218{col 26}{space 2} .0181494{col 37}{space 1}   36.09{col 46}{space 3}0.000{col 54}{space 4} .6194181{col 67}{space 3} .6906256
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg demotion i.QK if QK==3|QK==7,r

{txt}Linear regression                               Number of obs     = {res}     1,352
                                                {txt}F(1, 1350)        =  {res}    76.85
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0538
                                                {txt}Root MSE          =    {res} .40828

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HIM  {c |}{col 14}{res}{space 2}-.1945927{col 26}{space 2} .0221971{col 37}{space 1}   -8.77{col 46}{space 3}0.000{col 54}{space 4}-.2381372{col 67}{space 3}-.1510482
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .8696296{col 26}{space 2} .0129696{col 37}{space 1}   67.05{col 46}{space 3}0.000{col 54}{space 4} .8441869{col 67}{space 3} .8950724
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg demotion i.QK if QK==4|QK==8,r

{txt}Linear regression                               Number of obs     = {res}     1,387
                                                {txt}F(1, 1385)        =  {res}   497.36
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2627
                                                {txt}Root MSE          =    {res} .42588

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HCM  {c |}{col 14}{res}{space 2}-.5081683{col 26}{space 2} .0227863{col 37}{space 1}  -22.30{col 46}{space 3}0.000{col 54}{space 4}-.5528678{col 67}{space 3}-.4634689
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6831683{col 26}{space 2} .0175098{col 37}{space 1}   39.02{col 46}{space 3}0.000{col 54}{space 4} .6488197{col 67}{space 3}  .717517
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. 
. ********************************************************************************
. ********* Figure 1: Corrupt-yet-competent vs Honest-yet-incompetent officials **
. ********************************************************************************
. 
. *** Below shows the regression estimates **********
. *** A separate R file draws Figure 1 (and Online Appendix Figure A) ************
. 
. /**(a) to (c)**/
. quietly reg demotion i.QK,r
{txt}
{com}. lincom 2.QK-5.QK

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2.QK - 5.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.0745205{col 26}{space 2} .0245653{col 37}{space 1}   -3.03{col 46}{space 3}0.002{col 54}{space 4}-.1226782{col 67}{space 3}-.0263627
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. quietly  reg promotion i.QK,r
{txt}
{com}. lincom 2.QK-5.QK

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2.QK - 5.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}  .049543{col 26}{space 2} .0214162{col 37}{space 1}    2.31{col 46}{space 3}0.021{col 54}{space 4} .0075588{col 67}{space 3} .0915273
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. quietly  reg report i.QK,r
{txt}
{com}. lincom 2.QK-5.QK

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2.QK - 5.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} -.032201{col 26}{space 2}  .014358{col 37}{space 1}   -2.24{col 46}{space 3}0.025{col 54}{space 4}-.0603482{col 67}{space 3}-.0040537
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. /**(d) to (f)**/
. quietly reg demotion i.QK,r
{txt}
{com}. lincom 4.QK-7.QK

{p 0 7}{space 1}{text:( 1)}{space 1} {res}4.QK - 7.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0081314{col 26}{space 2} .0251214{col 37}{space 1}    0.32{col 46}{space 3}0.746{col 54}{space 4}-.0411165{col 67}{space 3} .0573793
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. quietly reg promotion i.QK,r
{txt}
{com}. lincom 4.QK-7.QK

{p 0 7}{space 1}{text:( 1)}{space 1} {res}4.QK - 7.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.0260886{col 26}{space 2} .0228186{col 37}{space 1}   -1.14{col 46}{space 3}0.253{col 54}{space 4} -.070822{col 67}{space 3} .0186448
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. quietly reg report i.QK,r
{txt}
{com}. lincom 4.QK-7.QK

{p 0 7}{space 1}{text:( 1)}{space 1} {res}4.QK - 7.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0040114{col 26}{space 2} .0155961{col 37}{space 1}    0.26{col 46}{space 3}0.797{col 54}{space 4}-.0265631{col 67}{space 3} .0345858
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. /**(g) to (i)**/
. quietly reg demotion i.QK,r
{txt}
{com}. lincom (4.QK-7.QK)-(2.QK-5.QK)

{p 0 7}{space 1}{text:( 1)}{space 1}{space 1}{res}- 2.QK + 4.QK + 5.QK - 7.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0826519{col 26}{space 2}  .035136{col 37}{space 1}    2.35{col 46}{space 3}0.019{col 54}{space 4} .0137714{col 67}{space 3} .1515324
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. quietly reg promotion i.QK,r
{txt}
{com}. lincom (4.QK-7.QK)-(2.QK-5.QK)

{p 0 7}{space 1}{text:( 1)}{space 1}{space 1}{res}- 2.QK + 4.QK + 5.QK - 7.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.0756316{col 26}{space 2} .0312944{col 37}{space 1}   -2.42{col 46}{space 3}0.016{col 54}{space 4} -.136981{col 67}{space 3}-.0142821
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. quietly reg report i.QK,r
{txt}
{com}. lincom (4.QK-7.QK)-(2.QK-5.QK)

{p 0 7}{space 1}{text:( 1)}{space 1}{space 1}{res}- 2.QK + 4.QK + 5.QK - 7.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0362123{col 26}{space 2} .0211988{col 37}{space 1}    1.71{col 46}{space 3}0.088{col 54}{space 4}-.0053456{col 67}{space 3} .0777703
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. **********************************************************
. ****************Manipulation check: footnotes 12 & 13 *****
. **********************************************************
. * check_corrupt: respondents view the assigned official as corrupt (0=no, 1=yes)
. reg check_corrupt corrupt, r

{txt}Linear regression                               Number of obs     = {res}     5,416
                                                {txt}F(1, 5414)        =  {res}  1946.10
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2627
                                                {txt}Root MSE          =    {res} .40122

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}check_corr~t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}corrupt {c |}{col 14}{res}{space 2} .4789237{col 26}{space 2} .0108564{col 37}{space 1}   44.11{col 46}{space 3}0.000{col 54}{space 4} .4576409{col 67}{space 3} .5002065
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .080417{col 26}{space 2}  .005248{col 37}{space 1}   15.32{col 46}{space 3}0.000{col 54}{space 4} .0701287{col 67}{space 3} .0907052
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, over(corrupt)
{res}
{txt}Predictive margins{col 49}Number of obs{col 67}= {res}     5,416
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:over}:{space 1}{res:corrupt}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}corrupt {c |}
{space 10}0  {c |}{col 14}{res}{space 2}  .080417{col 26}{space 2}  .005248{col 37}{space 1}   15.32{col 46}{space 3}0.000{col 54}{space 4} .0701287{col 67}{space 3} .0907052
{txt}{space 10}1  {c |}{col 14}{res}{space 2} .5593407{col 26}{space 2} .0095036{col 37}{space 1}   58.86{col 46}{space 3}0.000{col 54}{space 4} .5407098{col 67}{space 3} .5779716
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. * footnote 12
. reg check_corrupt corrupt##rank, r

{txt}Linear regression                               Number of obs     = {res}     5,416
                                                {txt}F(3, 5412)        =  {res}   654.43
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2631
                                                {txt}Root MSE          =    {res}  .4012

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}check_corr~t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}1.corrupt {c |}{col 14}{res}{space 2} .4618832{col 26}{space 2} .0154674{col 37}{space 1}   29.86{col 46}{space 3}0.000{col 54}{space 4} .4315609{col 67}{space 3} .4922054
{txt}{space 6}1.rank {c |}{col 14}{res}{space 2}-.0183972{col 26}{space 2} .0104682{col 37}{space 1}   -1.76{col 46}{space 3}0.079{col 54}{space 4} -.038919{col 67}{space 3} .0021247
{txt}{space 12} {c |}
corrupt#rank {c |}
{space 8}1 1  {c |}{col 14}{res}{space 2} .0346521{col 26}{space 2} .0217001{col 37}{space 1}    1.60{col 46}{space 3}0.110{col 54}{space 4}-.0078887{col 67}{space 3}  .077193
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .0893895{col 26}{space 2} .0076942{col 37}{space 1}   11.62{col 46}{space 3}0.000{col 54}{space 4} .0743059{col 67}{space 3} .1044732
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(corrupt) over(rank)
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}     5,416
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:1.corrupt}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:over}:{space 1}{res:rank}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.corrupt   {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.corrupt    {txt}{c |}
{space 8}rank {c |}
{space 10}0  {c |}{col 14}{res}{space 2} .4618832{col 26}{space 2} .0154674{col 37}{space 1}   29.86{col 46}{space 3}0.000{col 54}{space 4} .4315609{col 67}{space 3} .4922054
{txt}{space 10}1  {c |}{col 14}{res}{space 2} .4965353{col 26}{space 2} .0152202{col 37}{space 1}   32.62{col 46}{space 3}0.000{col 54}{space 4} .4666977{col 67}{space 3} .5263729
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. 
. * check_competent: respondents view the assigned official as competent (0=no, 1=yes)
. reg check_competent competent, r

{txt}Linear regression                               Number of obs     = {res}     5,470
                                                {txt}F(1, 5468)        =  {res}  2666.31
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3279
                                                {txt}Root MSE          =    {res} .40403

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}check_comp~t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}competent {c |}{col 14}{res}{space 2} .5643484{col 26}{space 2} .0109293{col 37}{space 1}   51.64{col 46}{space 3}0.000{col 54}{space 4} .5429227{col 67}{space 3} .5857742
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .133309{col 26}{space 2} .0064972{col 37}{space 1}   20.52{col 46}{space 3}0.000{col 54}{space 4} .1205719{col 67}{space 3}  .146046
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, over(competent)
{res}
{txt}Predictive margins{col 49}Number of obs{col 67}= {res}     5,470
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:over}:{space 1}{res:competent}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}competent {c |}
{space 10}0  {c |}{col 14}{res}{space 2}  .133309{col 26}{space 2} .0064972{col 37}{space 1}   20.52{col 46}{space 3}0.000{col 54}{space 4} .1205719{col 67}{space 3}  .146046
{txt}{space 10}1  {c |}{col 14}{res}{space 2} .6976574{col 26}{space 2} .0087884{col 37}{space 1}   79.38{col 46}{space 3}0.000{col 54}{space 4} .6804286{col 67}{space 3} .7148862
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. * footnote 13
. reg check_competent competent##rank, r

{txt}Linear regression                               Number of obs     = {res}     5,470
                                                {txt}F(3, 5466)        =  {res}   910.36
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3298
                                                {txt}Root MSE          =    {res} .40356

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}check_compet~t{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}1.competent {c |}{col 16}{res}{space 2} .5569584{col 28}{space 2} .0153549{col 39}{space 1}   36.27{col 48}{space 3}0.000{col 56}{space 4} .5268567{col 69}{space 3}   .58706
{txt}{space 8}1.rank {c |}{col 16}{res}{space 2} .0347391{col 28}{space 2} .0130168{col 39}{space 1}    2.67{col 48}{space 3}0.008{col 56}{space 4}  .009221{col 69}{space 3} .0602571
{txt}{space 14} {c |}
competent#rank {c |}
{space 10}1 1  {c |}{col 16}{res}{space 2} .0136141{col 28}{space 2}   .02186{col 39}{space 1}    0.62{col 48}{space 3}0.533{col 56}{space 4}-.0292402{col 69}{space 3} .0564683
{txt}{space 14} {c |}
{space 9}_cons {c |}{col 16}{res}{space 2} .1163455{col 28}{space 2} .0085695{col 39}{space 1}   13.58{col 48}{space 3}0.000{col 56}{space 4} .0995458{col 69}{space 3} .1331451
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(competent) over(rank)
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}     5,470
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:1.competent}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:over}:{space 1}{res:rank}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.competent {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.competent  {txt}{c |}
{space 8}rank {c |}
{space 10}0  {c |}{col 14}{res}{space 2} .5569584{col 26}{space 2} .0153549{col 37}{space 1}   36.27{col 46}{space 3}0.000{col 54}{space 4} .5268567{col 67}{space 3}   .58706
{txt}{space 10}1  {c |}{col 14}{res}{space 2} .5705725{col 26}{space 2} .0155591{col 37}{space 1}   36.67{col 46}{space 3}0.000{col 54}{space 4} .5400704{col 67}{space 3} .6010745
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. 
. 
. ***************************************************
. ******** Online Appendix Table A: Balance *********
. ***************************************************
. 
. preserve
{txt}
{com}. ** For presentation, re-order official types so township level proceeds 
. ** municipality level in Appendix Table A
. gen QK_order=.
{txt}(5,527 missing values generated)

{com}. /*township*/
. replace QK_order=1 if QK==1 /*CIT*/
{txt}(699 real changes made)

{com}. replace QK_order=2 if QK==2 /*CCT*/
{txt}(687 real changes made)

{com}. replace QK_order=3 if QK==5 /*HIT*/
{txt}(721 real changes made)

{com}. replace QK_order=4 if QK==6 /*HCT*/
{txt}(681 real changes made)

{com}. /*municipal*/
. replace QK_order=5 if QK==3 /*CIM*/
{txt}(675 real changes made)

{com}. replace QK_order=6 if QK==4 /*CCM*/
{txt}(707 real changes made)

{com}. replace QK_order=7 if QK==7 /*HIM*/
{txt}(677 real changes made)

{com}. replace QK_order=8 if QK==8 /*HIM*/
{txt}(680 real changes made)

{com}. 
. label define QK_orders 1 "CIT" 2 "CCT" 3 "HIT" 4 "HCT" ///
> 5 "CIM" 6 "CCM" 7 "HIM" 8 "HCM"
{txt}
{com}. label values QK_order QK_orders
{txt}
{com}. tab QK_order

   {txt}QK_order {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
        CIT {c |}{res}        699       12.65       12.65
{txt}        CCT {c |}{res}        687       12.43       25.08
{txt}        HIT {c |}{res}        721       13.05       38.12
{txt}        HCT {c |}{res}        681       12.32       50.44
{txt}        CIM {c |}{res}        675       12.21       62.66
{txt}        CCM {c |}{res}        707       12.79       75.45
{txt}        HIM {c |}{res}        677       12.25       87.70
{txt}        HCM {c |}{res}        680       12.30      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      5,527      100.00
{txt}
{com}.   
. * F TESTS
. mat Ftest = J(17, 11 ,0)
{txt}
{com}. 
. local j=1
{txt}
{com}. qui foreach var of varlist male han age hedu income ccp urban localcity hukouu gov town_clean town_corrupt town_dtk municipal_clean municipal_corrupt municipal_dtk contact{c -(}
{txt}
{com}. 
. matrix colnames Ftest = min max CIT CCT HIT HCT HIM CCM HIM HCM pvalue
{txt}
{com}. matrix rownames Ftest = "Male" "Han" "Age" "High education" "Annual income" ///
> "Party member" "Urban residence" "Hometown (same municipality)" ///
> "Urban hukou" "Government and public employee" "Township gov't_clean" "Township gov't_corrupt" /// 
> "Township gov't_dtk" "Municipal gov't_clean" "Municipal gov't_corrupt" ///
> "Municipal govt_dtk"  "Gov't interaction frequency"
{txt}
{com}. mat list Ftest
{res}
{txt}Ftest[17,11]
                    min        max        CIT        CCT        HIT        HCT        HIM        CCM        HIM        HCM     pvalue
        Male {res}         0          1  .68526466  .68122271  .70319001  .69162996  .67703704  .66053748  .66912851  .65882353  .62568267
{txt}         Han {res}         0          1  .89985694  .88937409   .8779473  .91923642  .89777778  .90664781  .89807976  .90294118  .33779473
{txt}         Age {res}         1          6  2.6723891  2.6302766  2.5478502  2.5888399  2.5940741  2.5855728  2.5672083  2.5176471  .42829786
{txt}High educa~n {res}         0          1  .28898426  .28238719  .29819695  .29368576  .28888889  .32673267  .30723781  .29558824  .73654461
{txt}Annual inc~e {res}         1          7  4.3075823  4.1921397  4.2760055  4.1600587  4.1096296  4.1471004  4.2082718  4.1808824  .43130916
{txt}Party member {res}         0          1  .21459227   .1790393  .17475728   .1835536  .20296296  .19094767  .19202363  .17794118  .56826713
{txt}Urban resi~e {res}         0          1  .65522175  .60989811  .62135922  .60352423  .62814815  .61951909  .64254062  .62647059  .55953193
{txt}Hometown (~) {res}         0          1  .81974249  .79475983  .80859917  .78267254  .79407407  .79915134  .79172821  .77647059  .57208386
{txt} Urban hukou {res}         0          1    .472103  .43813683  .48266297  .44199706  .44740741  .46817539  .47562777  .47352941  .56876124
{txt}Government~e {res}         0          1  .14020029  .13828239  .09570042  .11600587   .1437037  .12871287  .11816839  .11911765  .08887846
{txt}Township g~n {res}         0          1  .62088698  .65793304  .63800277  .64170338  .64444444  .60537482  .63220089  .66029412  .43019341
{txt}Township g~t {res}         0          1  .33190272  .30567686  .31622746   .3113069  .31111111  .33239038  .32496307  .27941176  .45241409
{txt}Township g~k {res}         0          1   .0472103   .0363901  .04576976  .04698972  .04444444  .06223479  .04283604  .06029412  .37484298
{txt}Municipal ~n {res}         0          1  .56509299   .5705968  .56865465  .60352423  .59259259  .55445545  .55982275  .53235294  .21986773
{txt}Municipal ~t {res}         0          1   .3676681  .36244541  .35783634  .33480176        .32  .36775106  .38404727  .38382353  .15942197
{txt}Municipal ~k {res}         0          1  .06723891  .06695779  .07350902  .06167401  .08740741  .07779349  .05612999  .08382353  .29799737
{txt}Gov't inte~y {res}         1          3  1.5765379  1.5793304  1.5506241  1.5712188  1.5851852  1.5742574   1.562777  1.5558824    .975994
{reset}
{com}. 
. putexcel set "balance.xlsx", sheet("Sheet1") replace
{res}{txt}Note: file will be replaced when the first {cmd:putexcel} command is issued

{com}. putexcel A1=matrix(Ftest), names 
{res}{txt}file balance.xlsx saved

{com}. restore
{txt}
{com}. 
. 
. 
. ******************************************************
. ********* Online Appendix Table C: Promotion *********
. ******************************************************
. quietly reg promotion i.QK, r
{txt}
{com}. 
. /*proportions in each cell*/
. margins, over(QK)
{res}
{txt}Predictive margins{col 49}Number of obs{col 67}= {res}     5,527
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:over}:{space 1}{res:QK}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}CIT  {c |}{col 14}{res}{space 2}  .055794{col 26}{space 2} .0086877{col 37}{space 1}    6.42{col 46}{space 3}0.000{col 54}{space 4} .0387627{col 67}{space 3} .0728252
{txt}{space 8}CCT  {c |}{col 14}{res}{space 2} .2270742{col 26}{space 2} .0159952{col 37}{space 1}   14.20{col 46}{space 3}0.000{col 54}{space 4} .1957174{col 67}{space 3} .2584311
{txt}{space 8}CIM  {c |}{col 14}{res}{space 2} .0874074{col 26}{space 2} .0108787{col 37}{space 1}    8.03{col 46}{space 3}0.000{col 54}{space 4}  .066081{col 67}{space 3} .1087339
{txt}{space 8}CCM  {c |}{col 14}{res}{space 2} .2220651{col 26}{space 2} .0156429{col 37}{space 1}   14.20{col 46}{space 3}0.000{col 54}{space 4} .1913989{col 67}{space 3} .2527313
{txt}{space 8}HIT  {c |}{col 14}{res}{space 2} .1775312{col 26}{space 2} .0142411{col 37}{space 1}   12.47{col 46}{space 3}0.000{col 54}{space 4}  .149613{col 67}{space 3} .2054494
{txt}{space 8}HCT  {c |}{col 14}{res}{space 2} .7356828{col 26}{space 2} .0169102{col 37}{space 1}   43.51{col 46}{space 3}0.000{col 54}{space 4} .7025321{col 67}{space 3} .7688335
{txt}{space 8}HIM  {c |}{col 14}{res}{space 2} .2481536{col 26}{space 2} .0166129{col 37}{space 1}   14.94{col 46}{space 3}0.000{col 54}{space 4} .2155858{col 67}{space 3} .2807214
{txt}{space 8}HCM  {c |}{col 14}{res}{space 2}      .75{col 26}{space 2} .0166173{col 37}{space 1}   45.13{col 46}{space 3}0.000{col 54}{space 4} .7174235{col 67}{space 3} .7825765
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. /*column differences*/
. reg promotion i.QK if QK==1|QK==2,r

{txt}Linear regression                               Number of obs     = {res}     1,386
                                                {txt}F(1, 1384)        =  {res}    88.55
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0607
                                                {txt}Root MSE          =    {res} .33724

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}CCT  {c |}{col 14}{res}{space 2} .1712802{col 26}{space 2} .0182022{col 37}{space 1}    9.41{col 46}{space 3}0.000{col 54}{space 4} .1355734{col 67}{space 3} .2069871
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .055794{col 26}{space 2} .0086876{col 37}{space 1}    6.42{col 46}{space 3}0.000{col 54}{space 4} .0387516{col 67}{space 3} .0728364
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg promotion i.QK if QK==3|QK==4,r

{txt}Linear regression                               Number of obs     = {res}     1,382
                                                {txt}F(1, 1380)        =  {res}    49.95
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0344
                                                {txt}Root MSE          =    {res}  .3571

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}CCM  {c |}{col 14}{res}{space 2} .1346577{col 26}{space 2} .0190537{col 37}{space 1}    7.07{col 46}{space 3}0.000{col 54}{space 4} .0972803{col 67}{space 3} .1720351
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .0874074{col 26}{space 2} .0108787{col 37}{space 1}    8.03{col 46}{space 3}0.000{col 54}{space 4} .0660669{col 67}{space 3} .1087479
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg promotion i.QK if QK==5|QK==6,r

{txt}Linear regression                               Number of obs     = {res}     1,402
                                                {txt}F(1, 1400)        =  {res}   637.40
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3146
                                                {txt}Root MSE          =    {res} .41205

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HCT  {c |}{col 14}{res}{space 2} .5581516{col 26}{space 2} .0221078{col 37}{space 1}   25.25{col 46}{space 3}0.000{col 54}{space 4} .5147837{col 67}{space 3} .6015196
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1775312{col 26}{space 2}  .014241{col 37}{space 1}   12.47{col 46}{space 3}0.000{col 54}{space 4} .1495953{col 67}{space 3} .2054671
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg promotion i.QK if QK==7|QK==8,r

{txt}Linear regression                               Number of obs     = {res}     1,357
                                                {txt}F(1, 1355)        =  {res}   456.14
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2518
                                                {txt}Root MSE          =    {res}  .4328

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HCM  {c |}{col 14}{res}{space 2} .5018464{col 26}{space 2} .0234976{col 37}{space 1}   21.36{col 46}{space 3}0.000{col 54}{space 4} .4557507{col 67}{space 3}  .547942
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2481536{col 26}{space 2} .0166131{col 37}{space 1}   14.94{col 46}{space 3}0.000{col 54}{space 4} .2155634{col 67}{space 3} .2807438
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. /*row differences*/
. reg promotion i.QK if QK==1|QK==5,r

{txt}Linear regression                               Number of obs     = {res}     1,420
                                                {txt}F(1, 1418)        =  {res}    53.26
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0357
                                                {txt}Root MSE          =    {res} .31656

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HIT  {c |}{col 14}{res}{space 2} .1217372{col 26}{space 2} .0166815{col 37}{space 1}    7.30{col 46}{space 3}0.000{col 54}{space 4} .0890141{col 67}{space 3} .1544604
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .055794{col 26}{space 2} .0086875{col 37}{space 1}    6.42{col 46}{space 3}0.000{col 54}{space 4} .0387523{col 67}{space 3} .0728357
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg promotion i.QK if QK==2|QK==6,r

{txt}Linear regression                               Number of obs     = {res}     1,368
                                                {txt}F(1, 1366)        =  {res}   477.44
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2591
                                                {txt}Root MSE          =    {res} .43036

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HCT  {c |}{col 14}{res}{space 2} .5086086{col 26}{space 2} .0232768{col 37}{space 1}   21.85{col 46}{space 3}0.000{col 54}{space 4} .4629465{col 67}{space 3} .5542707
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2270742{col 26}{space 2} .0159953{col 37}{space 1}   14.20{col 46}{space 3}0.000{col 54}{space 4} .1956962{col 67}{space 3} .2584522
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg promotion i.QK if QK==3|QK==7,r

{txt}Linear regression                               Number of obs     = {res}     1,352
                                                {txt}F(1, 1350)        =  {res}    65.52
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0462
                                                {txt}Root MSE          =    {res}  .3653

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HIM  {c |}{col 14}{res}{space 2} .1607462{col 26}{space 2} .0198581{col 37}{space 1}    8.09{col 46}{space 3}0.000{col 54}{space 4}   .12179{col 67}{space 3} .1997024
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .0874074{col 26}{space 2} .0108788{col 37}{space 1}    8.03{col 46}{space 3}0.000{col 54}{space 4} .0660662{col 67}{space 3} .1087487
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg promotion i.QK if QK==4|QK==8,r

{txt}Linear regression                               Number of obs     = {res}     1,387
                                                {txt}F(1, 1385)        =  {res}   535.14
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2790
                                                {txt}Root MSE          =    {res} .42455

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HCM  {c |}{col 14}{res}{space 2} .5279349{col 26}{space 2} .0228217{col 37}{space 1}   23.13{col 46}{space 3}0.000{col 54}{space 4}  .483166{col 67}{space 3} .5727038
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2220651{col 26}{space 2} .0156428{col 37}{space 1}   14.20{col 46}{space 3}0.000{col 54}{space 4} .1913789{col 67}{space 3} .2527513
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. 
. ******************************************************
. ********* Online Appendix Table D: Reporting *********
. ******************************************************
. quietly reg report i.QK, r
{txt}
{com}. 
. /*proportions in each cell*/
. margins, over(QK)
{res}
{txt}Predictive margins{col 49}Number of obs{col 67}= {res}     5,527
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:over}:{space 1}{res:QK}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}CIT  {c |}{col 14}{res}{space 2} .9427754{col 26}{space 2} .0087917{col 37}{space 1}  107.24{col 46}{space 3}0.000{col 54}{space 4} .9255403{col 67}{space 3} .9600105
{txt}{space 8}CCT  {c |}{col 14}{res}{space 2} .9053857{col 26}{space 2} .0111746{col 37}{space 1}   81.02{col 46}{space 3}0.000{col 54}{space 4} .8834792{col 67}{space 3} .9272923
{txt}{space 8}CIM  {c |}{col 14}{res}{space 2} .9496296{col 26}{space 2} .0084242{col 37}{space 1}  112.73{col 46}{space 3}0.000{col 54}{space 4} .9331149{col 67}{space 3} .9661443
{txt}{space 8}CCM  {c |}{col 14}{res}{space 2} .9094767{col 26}{space 2} .0107989{col 37}{space 1}   84.22{col 46}{space 3}0.000{col 54}{space 4} .8883065{col 67}{space 3} .9306468
{txt}{space 8}HIT  {c |}{col 14}{res}{space 2} .9375867{col 26}{space 2} .0090155{col 37}{space 1}  104.00{col 46}{space 3}0.000{col 54}{space 4} .9199127{col 67}{space 3} .9552607
{txt}{space 8}HCT  {c |}{col 14}{res}{space 2} .9207048{col 26}{space 2} .0103615{col 37}{space 1}   88.86{col 46}{space 3}0.000{col 54}{space 4} .9003921{col 67}{space 3} .9410176
{txt}{space 8}HIM  {c |}{col 14}{res}{space 2} .9054653{col 26}{space 2} .0112526{col 37}{space 1}   80.47{col 46}{space 3}0.000{col 54}{space 4} .8834058{col 67}{space 3} .9275248
{txt}{space 8}HCM  {c |}{col 14}{res}{space 2} .8985294{col 26}{space 2} .0115877{col 37}{space 1}   77.54{col 46}{space 3}0.000{col 54}{space 4}  .875813{col 67}{space 3} .9212458
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. /*column differences*/
. reg report i.QK if QK==1|QK==2,r

{txt}Linear regression                               Number of obs     = {res}     1,386
                                                {txt}F(1, 1384)        =  {res}     6.92
                                                {txt}Prob > F          = {res}    0.0086
                                                {txt}R-squared         = {res}    0.0050
                                                {txt}Root MSE          =    {res} .26414

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}CCT  {c |}{col 14}{res}{space 2}-.0373897{col 26}{space 2} .0142184{col 37}{space 1}   -2.63{col 46}{space 3}0.009{col 54}{space 4}-.0652817{col 67}{space 3}-.0094976
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .9427754{col 26}{space 2} .0087917{col 37}{space 1}  107.24{col 46}{space 3}0.000{col 54}{space 4}  .925529{col 67}{space 3} .9600218
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg report i.QK if QK==3|QK==4,r

{txt}Linear regression                               Number of obs     = {res}     1,382
                                                {txt}F(1, 1380)        =  {res}     8.59
                                                {txt}Prob > F          = {res}    0.0034
                                                {txt}R-squared         = {res}    0.0061
                                                {txt}Root MSE          =    {res} .25608

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}CCM  {c |}{col 14}{res}{space 2} -.040153{col 26}{space 2} .0136961{col 37}{space 1}   -2.93{col 46}{space 3}0.003{col 54}{space 4}-.0670204{col 67}{space 3}-.0132855
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .9496296{col 26}{space 2} .0084242{col 37}{space 1}  112.73{col 46}{space 3}0.000{col 54}{space 4} .9331041{col 67}{space 3} .9661552
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg report i.QK if QK==5|QK==6,r

{txt}Linear regression                               Number of obs     = {res}     1,402
                                                {txt}F(1, 1400)        =  {res}     1.51
                                                {txt}Prob > F          = {res}    0.2192
                                                {txt}R-squared         = {res}    0.0011
                                                {txt}Root MSE          =    {res} .25622

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HCT  {c |}{col 14}{res}{space 2}-.0168818{col 26}{space 2} .0137345{col 37}{space 1}   -1.23{col 46}{space 3}0.219{col 54}{space 4}-.0438243{col 67}{space 3} .0100606
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .9375867{col 26}{space 2} .0090154{col 37}{space 1}  104.00{col 46}{space 3}0.000{col 54}{space 4} .9199015{col 67}{space 3} .9552719
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg report i.QK if QK==7|QK==8,r

{txt}Linear regression                               Number of obs     = {res}     1,357
                                                {txt}F(1, 1355)        =  {res}     0.18
                                                {txt}Prob > F          = {res}    0.6677
                                                {txt}R-squared         = {res}    0.0001
                                                {txt}Root MSE          =    {res} .29753

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HCM  {c |}{col 14}{res}{space 2}-.0069359{col 26}{space 2} .0161524{col 37}{space 1}   -0.43{col 46}{space 3}0.668{col 54}{space 4}-.0386224{col 67}{space 3} .0247506
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .9054653{col 26}{space 2} .0112527{col 37}{space 1}   80.47{col 46}{space 3}0.000{col 54}{space 4} .8833906{col 67}{space 3} .9275399
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. /*row differences*/
. reg report i.QK if QK==1|QK==5,r

{txt}Linear regression                               Number of obs     = {res}     1,420
                                                {txt}F(1, 1418)        =  {res}     0.17
                                                {txt}Prob > F          = {res}    0.6804
                                                {txt}R-squared         = {res}    0.0001
                                                {txt}Root MSE          =    {res} .23738

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HIT  {c |}{col 14}{res}{space 2}-.0051887{col 26}{space 2} .0125923{col 37}{space 1}   -0.41{col 46}{space 3}0.680{col 54}{space 4}-.0298903{col 67}{space 3} .0195129
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .9427754{col 26}{space 2} .0087915{col 37}{space 1}  107.24{col 46}{space 3}0.000{col 54}{space 4} .9255296{col 67}{space 3} .9600211
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg report i.QK if QK==2|QK==6,r

{txt}Linear regression                               Number of obs     = {res}     1,368
                                                {txt}F(1, 1366)        =  {res}     1.01
                                                {txt}Prob > F          = {res}    0.3150
                                                {txt}R-squared         = {res}    0.0007
                                                {txt}Root MSE          =    {res} .28192

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HCT  {c |}{col 14}{res}{space 2} .0153191{col 26}{space 2} .0152393{col 37}{space 1}    1.01{col 46}{space 3}0.315{col 54}{space 4}-.0145759{col 67}{space 3} .0452141
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .9053857{col 26}{space 2} .0111747{col 37}{space 1}   81.02{col 46}{space 3}0.000{col 54}{space 4} .8834644{col 67}{space 3} .9273071
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg report i.QK if QK==3|QK==7,r

{txt}Linear regression                               Number of obs     = {res}     1,352
                                                {txt}F(1, 1350)        =  {res}     9.87
                                                {txt}Prob > F          = {res}    0.0017
                                                {txt}R-squared         = {res}    0.0073
                                                {txt}Root MSE          =    {res} .25854

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HIM  {c |}{col 14}{res}{space 2}-.0441643{col 26}{space 2} .0140568{col 37}{space 1}   -3.14{col 46}{space 3}0.002{col 54}{space 4}-.0717399{col 67}{space 3}-.0165888
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .9496296{col 26}{space 2} .0084243{col 37}{space 1}  112.72{col 46}{space 3}0.000{col 54}{space 4} .9331035{col 67}{space 3} .9661558
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg report i.QK if QK==4|QK==8,r

{txt}Linear regression                               Number of obs     = {res}     1,387
                                                {txt}F(1, 1385)        =  {res}     0.48
                                                {txt}Prob > F          = {res}    0.4896
                                                {txt}R-squared         = {res}    0.0003
                                                {txt}Root MSE          =    {res}  .2946

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}QK {c |}
{space 8}HCM  {c |}{col 14}{res}{space 2}-.0109473{col 26}{space 2} .0158395{col 37}{space 1}   -0.69{col 46}{space 3}0.490{col 54}{space 4}-.0420193{col 67}{space 3} .0201248
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .9094767{col 26}{space 2} .0107989{col 37}{space 1}   84.22{col 46}{space 3}0.000{col 54}{space 4} .8882927{col 67}{space 3} .9306606
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. 
. ******************************************************
. *********** Online Appendix Table E: AMCE ************
. ******************************************************
. 
. reg demotion corrupt competent rank, r

{txt}Linear regression                               Number of obs     = {res}     5,527
                                                {txt}F(3, 5523)        =  {res}   799.49
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2480
                                                {txt}Root MSE          =    {res} .42289

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}corrupt {c |}{col 14}{res}{space 2} .3275381{col 26}{space 2} .0113501{col 37}{space 1}   28.86{col 46}{space 3}0.000{col 54}{space 4} .3052874{col 67}{space 3} .3497888
{txt}{space 3}competent {c |}{col 14}{res}{space 2}-.3612154{col 26}{space 2} .0113595{col 37}{space 1}  -31.80{col 46}{space 3}0.000{col 54}{space 4}-.3834844{col 67}{space 3}-.3389463
{txt}{space 8}rank {c |}{col 14}{res}{space 2}-.0170428{col 26}{space 2} .0113847{col 37}{space 1}   -1.50{col 46}{space 3}0.134{col 54}{space 4}-.0393613{col 67}{space 3} .0052757
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6356438{col 26}{space 2}  .011714{col 37}{space 1}   54.26{col 46}{space 3}0.000{col 54}{space 4} .6126797{col 67}{space 3} .6586079
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using amce, excel symbol (***,**,*) alpha (0.01,0.05,0.1) dec (3) replace
{txt}{browse `"amce.xml"'}
{browse `"D:\Dropbox\Tradeoff replication"' :dir}{com} : {txt}{stata `"seeout using "amce.txt""':seeout}

{com}. 
. reg promotion corrupt competent rank, r

{txt}Linear regression                               Number of obs     = {res}     5,527
                                                {txt}F(3, 5523)        =  {res}   751.94
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2607
                                                {txt}Root MSE          =    {res}  .3981

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}corrupt {c |}{col 14}{res}{space 2}-.3289698{col 26}{space 2} .0106988{col 37}{space 1}  -30.75{col 46}{space 3}0.000{col 54}{space 4}-.3499437{col 67}{space 3} -.307996
{txt}{space 3}competent {c |}{col 14}{res}{space 2} .3414007{col 26}{space 2} .0107129{col 37}{space 1}   31.87{col 46}{space 3}0.000{col 54}{space 4} .3203993{col 67}{space 3} .3624021
{txt}{space 8}rank {c |}{col 14}{res}{space 2} .0279243{col 26}{space 2} .0107241{col 37}{space 1}    2.60{col 46}{space 3}0.009{col 54}{space 4} .0069008{col 67}{space 3} .0489479
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2915768{col 26}{space 2} .0106442{col 37}{space 1}   27.39{col 46}{space 3}0.000{col 54}{space 4} .2707099{col 67}{space 3} .3124437
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using amce, excel symbol (***,**,*) alpha (0.01,0.05,0.1) dec (3) append
{txt}{browse `"amce.xml"'}
{browse `"D:\Dropbox\Tradeoff replication"' :dir}{com} : {txt}{stata `"seeout using "amce.txt""':seeout}

{com}. 
. reg report corrupt competent rank, r

{txt}Linear regression                               Number of obs     = {res}     5,527
                                                {txt}F(3, 5523)        =  {res}     5.84
                                                {txt}Prob > F          = {res}    0.0006
                                                {txt}R-squared         = {res}    0.0031
                                                {txt}Root MSE          =    {res} .26896

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}corrupt {c |}{col 14}{res}{space 2}  .011093{col 26}{space 2} .0072361{col 37}{space 1}    1.53{col 46}{space 3}0.125{col 54}{space 4}-.0030927{col 67}{space 3} .0252786
{txt}{space 3}competent {c |}{col 14}{res}{space 2}-.0253967{col 26}{space 2} .0072358{col 37}{space 1}   -3.51{col 46}{space 3}0.000{col 54}{space 4}-.0395817{col 67}{space 3}-.0112117
{txt}{space 8}rank {c |}{col 14}{res}{space 2}  -.01085{col 26}{space 2} .0072475{col 37}{space 1}   -1.50{col 46}{space 3}0.134{col 54}{space 4} -.025058{col 67}{space 3}  .003358
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .9337761{col 26}{space 2} .0068407{col 37}{space 1}  136.50{col 46}{space 3}0.000{col 54}{space 4} .9203656{col 67}{space 3} .9471866
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using amce, excel symbol (***,**,*) alpha (0.01,0.05,0.1) dec (3) append
{txt}{browse `"amce.xml"'}
{browse `"D:\Dropbox\Tradeoff replication"' :dir}{com} : {txt}{stata `"seeout using "amce.txt""':seeout}

{com}. 
. reg demotion corrupt competent rank 1.corrupt#1.rank 1.competent#1.rank, r

{txt}Linear regression                               Number of obs     = {res}     5,527
                                                {txt}F(5, 5521)        =  {res}   481.18
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2491
                                                {txt}Root MSE          =    {res} .42266

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}      demotion{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}corrupt {c |}{col 16}{res}{space 2} .3021667{col 28}{space 2} .0159012{col 39}{space 1}   19.00{col 48}{space 3}0.000{col 56}{space 4}  .270994{col 69}{space 3} .3333393
{txt}{space 5}competent {c |}{col 16}{res}{space 2}-.3802478{col 28}{space 2} .0159448{col 39}{space 1}  -23.85{col 48}{space 3}0.000{col 56}{space 4}-.4115059{col 69}{space 3}-.3489897
{txt}{space 10}rank {c |}{col 16}{res}{space 2}-.0618219{col 28}{space 2} .0208937{col 39}{space 1}   -2.96{col 48}{space 3}0.003{col 56}{space 4}-.1027819{col 69}{space 3} -.020862
{txt}{space 14} {c |}
{space 2}corrupt#rank {c |}
{space 10}1 1  {c |}{col 16}{res}{space 2} .0511878{col 28}{space 2} .0226921{col 39}{space 1}    2.26{col 48}{space 3}0.024{col 56}{space 4} .0067023{col 69}{space 3} .0956733
{txt}{space 14} {c |}
competent#rank {c |}
{space 10}1 1  {c |}{col 16}{res}{space 2} .0383881{col 28}{space 2} .0227126{col 39}{space 1}    1.69{col 48}{space 3}0.091{col 56}{space 4}-.0061375{col 69}{space 3} .0829137
{txt}{space 14} {c |}
{space 9}_cons {c |}{col 16}{res}{space 2} .6575954{col 28}{space 2} .0143051{col 39}{space 1}   45.97{col 48}{space 3}0.000{col 56}{space 4} .6295518{col 69}{space 3}  .685639
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using amce, excel symbol (***,**,*) alpha (0.01,0.05,0.1) dec (3) append
{txt}{browse `"amce.xml"'}
{browse `"D:\Dropbox\Tradeoff replication"' :dir}{com} : {txt}{stata `"seeout using "amce.txt""':seeout}

{com}. 
. reg promotion corrupt competent rank 1.corrupt#1.rank 1.competent#1.rank, r

{txt}Linear regression                               Number of obs     = {res}     5,527
                                                {txt}F(5, 5521)        =  {res}   454.99
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2618
                                                {txt}Root MSE          =    {res} .39788

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}     promotion{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}corrupt {c |}{col 16}{res}{space 2}-.3115864{col 28}{space 2} .0146974{col 39}{space 1}  -21.20{col 48}{space 3}0.000{col 56}{space 4}-.3403991{col 69}{space 3}-.2827737
{txt}{space 5}competent {c |}{col 16}{res}{space 2} .3657545{col 28}{space 2} .0147931{col 39}{space 1}   24.72{col 48}{space 3}0.000{col 56}{space 4} .3367543{col 69}{space 3} .3947547
{txt}{space 10}rank {c |}{col 16}{res}{space 2} .0699839{col 28}{space 2} .0191404{col 39}{space 1}    3.66{col 48}{space 3}0.000{col 56}{space 4} .0324612{col 69}{space 3} .1075065
{txt}{space 14} {c |}
{space 2}corrupt#rank {c |}
{space 10}1 1  {c |}{col 16}{res}{space 2}-.0350656{col 28}{space 2} .0213982{col 39}{space 1}   -1.64{col 48}{space 3}0.101{col 56}{space 4}-.0770145{col 69}{space 3} .0068832
{txt}{space 14} {c |}
competent#rank {c |}
{space 10}1 1  {c |}{col 16}{res}{space 2}-.0491295{col 28}{space 2} .0214256{col 39}{space 1}   -2.29{col 48}{space 3}0.022{col 56}{space 4}-.0911321{col 69}{space 3}-.0071269
{txt}{space 14} {c |}
{space 9}_cons {c |}{col 16}{res}{space 2} .2709851{col 28}{space 2} .0127293{col 39}{space 1}   21.29{col 48}{space 3}0.000{col 56}{space 4} .2460307{col 69}{space 3} .2959396
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using amce, excel symbol (***,**,*) alpha (0.01,0.05,0.1) dec (3) append
{txt}{browse `"amce.xml"'}
{browse `"D:\Dropbox\Tradeoff replication"' :dir}{com} : {txt}{stata `"seeout using "amce.txt""':seeout}

{com}. 
. reg report corrupt competent rank 1.corrupt#1.rank 1.competent#1.rank, r

{txt}Linear regression                               Number of obs     = {res}     5,527
                                                {txt}F(5, 5521)        =  {res}     4.43
                                                {txt}Prob > F          = {res}    0.0005
                                                {txt}R-squared         = {res}    0.0040
                                                {txt}Root MSE          =    {res} .26889

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}        report{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}corrupt {c |}{col 16}{res}{space 2}-.0048751{col 28}{space 2} .0098516{col 39}{space 1}   -0.49{col 48}{space 3}0.621{col 56}{space 4}-.0241882{col 69}{space 3}  .014438
{txt}{space 5}competent {c |}{col 16}{res}{space 2}-.0270807{col 28}{space 2} .0098828{col 39}{space 1}   -2.74{col 48}{space 3}0.006{col 56}{space 4}-.0464549{col 69}{space 3}-.0077064
{txt}{space 10}rank {c |}{col 16}{res}{space 2}-.0286789{col 28}{space 2} .0124951{col 39}{space 1}   -2.30{col 48}{space 3}0.022{col 56}{space 4}-.0531742{col 69}{space 3}-.0041837
{txt}{space 14} {c |}
{space 2}corrupt#rank {c |}
{space 10}1 1  {c |}{col 16}{res}{space 2} .0322218{col 28}{space 2} .0144772{col 39}{space 1}    2.23{col 48}{space 3}0.026{col 56}{space 4} .0038409{col 69}{space 3} .0606027
{txt}{space 14} {c |}
competent#rank {c |}
{space 10}1 1  {c |}{col 16}{res}{space 2} .0033891{col 28}{space 2} .0144753{col 39}{space 1}    0.23{col 48}{space 3}0.815{col 56}{space 4}-.0249882{col 69}{space 3} .0317664
{txt}{space 14} {c |}
{space 9}_cons {c |}{col 16}{res}{space 2} .9425406{col 28}{space 2}  .008051{col 39}{space 1}  117.07{col 48}{space 3}0.000{col 56}{space 4} .9267574{col 69}{space 3} .9583238
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using amce, excel symbol (***,**,*) alpha (0.01,0.05,0.1) dec (3) append
{txt}{browse `"amce.xml"'}
{browse `"D:\Dropbox\Tradeoff replication"' :dir}{com} : {txt}{stata `"seeout using "amce.txt""':seeout}

{com}. 
. ** marginal effects conditional on the government levels
. ** AMCEs of corruption and competence at township level are available in the regression above 
. ** Differently, regression below use municipality-level as reference group, 
. ** so the coefficients of `corrupt' and `competent' represent their AMCEs at the municipality-level
. reg demotion corrupt competent 0.rank 1.corrupt#0.rank 1.competent#0.rank, r

{txt}Linear regression                               Number of obs     = {res}     5,527
                                                {txt}F(5, 5521)        =  {res}   481.18
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2491
                                                {txt}Root MSE          =    {res} .42266

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}      demotion{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}corrupt {c |}{col 16}{res}{space 2} .3533545{col 28}{space 2}  .016189{col 39}{space 1}   21.83{col 48}{space 3}0.000{col 56}{space 4} .3216176{col 69}{space 3} .3850913
{txt}{space 5}competent {c |}{col 16}{res}{space 2}-.3418597{col 28}{space 2} .0161748{col 39}{space 1}  -21.14{col 48}{space 3}0.000{col 56}{space 4}-.3735687{col 69}{space 3}-.3101507
{txt}{space 8}0.rank {c |}{col 16}{res}{space 2} .0618219{col 28}{space 2} .0208937{col 39}{space 1}    2.96{col 48}{space 3}0.003{col 56}{space 4}  .020862{col 69}{space 3} .1027819
{txt}{space 14} {c |}
{space 2}corrupt#rank {c |}
{space 10}1 0  {c |}{col 16}{res}{space 2}-.0511878{col 28}{space 2} .0226921{col 39}{space 1}   -2.26{col 48}{space 3}0.024{col 56}{space 4}-.0956733{col 69}{space 3}-.0067023
{txt}{space 14} {c |}
competent#rank {c |}
{space 10}1 0  {c |}{col 16}{res}{space 2}-.0383881{col 28}{space 2} .0227126{col 39}{space 1}   -1.69{col 48}{space 3}0.091{col 56}{space 4}-.0829137{col 69}{space 3} .0061375
{txt}{space 14} {c |}
{space 9}_cons {c |}{col 16}{res}{space 2} .5957735{col 28}{space 2} .0152287{col 39}{space 1}   39.12{col 48}{space 3}0.000{col 56}{space 4} .5659193{col 69}{space 3} .6256277
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg promotion corrupt competent 0.rank 1.corrupt#0.rank 1.competent#0.rank, r

{txt}Linear regression                               Number of obs     = {res}     5,527
                                                {txt}F(5, 5521)        =  {res}   454.99
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2618
                                                {txt}Root MSE          =    {res} .39788

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}     promotion{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}corrupt {c |}{col 16}{res}{space 2} -.346652{col 28}{space 2} .0155521{col 39}{space 1}  -22.29{col 48}{space 3}0.000{col 56}{space 4}-.3771403{col 69}{space 3}-.3161638
{txt}{space 5}competent {c |}{col 16}{res}{space 2} .3166251{col 28}{space 2} .0154991{col 39}{space 1}   20.43{col 48}{space 3}0.000{col 56}{space 4} .2862408{col 69}{space 3} .3470094
{txt}{space 8}0.rank {c |}{col 16}{res}{space 2}-.0699839{col 28}{space 2} .0191404{col 39}{space 1}   -3.66{col 48}{space 3}0.000{col 56}{space 4}-.1075065{col 69}{space 3}-.0324612
{txt}{space 14} {c |}
{space 2}corrupt#rank {c |}
{space 10}1 0  {c |}{col 16}{res}{space 2} .0350656{col 28}{space 2} .0213982{col 39}{space 1}    1.64{col 48}{space 3}0.101{col 56}{space 4}-.0068832{col 69}{space 3} .0770145
{txt}{space 14} {c |}
competent#rank {c |}
{space 10}1 0  {c |}{col 16}{res}{space 2} .0491295{col 28}{space 2} .0214256{col 39}{space 1}    2.29{col 48}{space 3}0.022{col 56}{space 4} .0071269{col 69}{space 3} .0911321
{txt}{space 14} {c |}
{space 9}_cons {c |}{col 16}{res}{space 2}  .340969{col 28}{space 2}  .014294{col 39}{space 1}   23.85{col 48}{space 3}0.000{col 56}{space 4} .3129472{col 69}{space 3} .3689909
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. reg report corrupt competent 0.rank 1.corrupt#0.rank 1.competent#0.rank, r

{txt}Linear regression                               Number of obs     = {res}     5,527
                                                {txt}F(5, 5521)        =  {res}     4.43
                                                {txt}Prob > F          = {res}    0.0005
                                                {txt}R-squared         = {res}    0.0040
                                                {txt}Root MSE          =    {res} .26889

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}        report{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}corrupt {c |}{col 16}{res}{space 2} .0273467{col 28}{space 2} .0106082{col 39}{space 1}    2.58{col 48}{space 3}0.010{col 56}{space 4} .0065505{col 69}{space 3} .0481429
{txt}{space 5}competent {c |}{col 16}{res}{space 2}-.0236916{col 28}{space 2} .0105766{col 39}{space 1}   -2.24{col 48}{space 3}0.025{col 56}{space 4}-.0444259{col 69}{space 3}-.0029573
{txt}{space 8}0.rank {c |}{col 16}{res}{space 2} .0286789{col 28}{space 2} .0124951{col 39}{space 1}    2.30{col 48}{space 3}0.022{col 56}{space 4} .0041837{col 69}{space 3} .0531742
{txt}{space 14} {c |}
{space 2}corrupt#rank {c |}
{space 10}1 0  {c |}{col 16}{res}{space 2}-.0322218{col 28}{space 2} .0144772{col 39}{space 1}   -2.23{col 48}{space 3}0.026{col 56}{space 4}-.0606027{col 69}{space 3}-.0038409
{txt}{space 14} {c |}
competent#rank {c |}
{space 10}1 0  {c |}{col 16}{res}{space 2}-.0033891{col 28}{space 2} .0144753{col 39}{space 1}   -0.23{col 48}{space 3}0.815{col 56}{space 4}-.0317664{col 69}{space 3} .0249882
{txt}{space 14} {c |}
{space 9}_cons {c |}{col 16}{res}{space 2} .9138617{col 28}{space 2} .0095555{col 39}{space 1}   95.64{col 48}{space 3}0.000{col 56}{space 4} .8951292{col 69}{space 3} .9325942
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. 
. 
. ********************************************************************************
. *****  Online Appendix Figure A: Replicating Figure 1 by adding controls *******
. ********************************************************************************
. 
. global reg_covar = "male han i.age hedu i.income ccp urban localcity hukouu gov town_clean town_corrupt municipal_clean municipal_corrupt i.contact"
{txt}
{com}. * township_dtk and municipal_dtk are ommited as the reference groups
. 
. *** Below shows the regression estimates ***************************************
. *** A separate R file draws Online Appendix Figure A (and Figure 1) ************
. 
. /**(a) to (c)**/
. quietly reg demotion i.QK $reg_covar,r
{txt}
{com}. lincom 2.QK-5.QK

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2.QK - 5.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.0686847{col 26}{space 2} .0243814{col 37}{space 1}   -2.82{col 46}{space 3}0.005{col 54}{space 4}-.1164819{col 67}{space 3}-.0208876
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. quietly  reg promotion i.QK $reg_covar,r
{txt}
{com}. lincom 2.QK-5.QK

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2.QK - 5.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0444979{col 26}{space 2}  .021123{col 37}{space 1}    2.11{col 46}{space 3}0.035{col 54}{space 4} .0030884{col 67}{space 3} .0859075
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. quietly  reg report i.QK $reg_covar,r
{txt}
{com}. lincom 2.QK-5.QK

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2.QK - 5.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.0309681{col 26}{space 2} .0143042{col 37}{space 1}   -2.16{col 46}{space 3}0.030{col 54}{space 4}-.0590099{col 67}{space 3}-.0029263
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. /**(d) to (f)**/
. quietly reg demotion i.QK $reg_covar,r
{txt}
{com}. lincom 4.QK-7.QK

{p 0 7}{space 1}{text:( 1)}{space 1} {res}4.QK - 7.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}  .007965{col 26}{space 2} .0247834{col 37}{space 1}    0.32{col 46}{space 3}0.748{col 54}{space 4}-.0406203{col 67}{space 3} .0565503
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. quietly reg promotion i.QK $reg_covar,r
{txt}
{com}. lincom 4.QK-7.QK

{p 0 7}{space 1}{text:( 1)}{space 1} {res}4.QK - 7.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.0258901{col 26}{space 2} .0223628{col 37}{space 1}   -1.16{col 46}{space 3}0.247{col 54}{space 4}  -.06973{col 67}{space 3} .0179499
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. quietly reg report i.QK $reg_covar,r
{txt}
{com}. lincom 4.QK-7.QK

{p 0 7}{space 1}{text:( 1)}{space 1} {res}4.QK - 7.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0031711{col 26}{space 2} .0155729{col 37}{space 1}    0.20{col 46}{space 3}0.839{col 54}{space 4}-.0273579{col 67}{space 3} .0337001
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. /**(g) to (i)**/
. quietly reg demotion i.QK $reg_covar,r
{txt}
{com}. lincom (4.QK-7.QK)-(2.QK-5.QK)

{p 0 7}{space 1}{text:( 1)}{space 1}{space 1}{res}- 2.QK + 4.QK + 5.QK - 7.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}    demotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0766497{col 26}{space 2} .0347454{col 37}{space 1}    2.21{col 46}{space 3}0.027{col 54}{space 4} .0085349{col 67}{space 3} .1447645
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. quietly reg promotion i.QK $reg_covar,r
{txt}
{com}. lincom (4.QK-7.QK)-(2.QK-5.QK)

{p 0 7}{space 1}{text:( 1)}{space 1}{space 1}{res}- 2.QK + 4.QK + 5.QK - 7.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   promotion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} -.070388{col 26}{space 2} .0307623{col 37}{space 1}   -2.29{col 46}{space 3}0.022{col 54}{space 4}-.1306943{col 67}{space 3}-.0100817
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. quietly reg report i.QK $reg_covar,r
{txt}
{com}. lincom (4.QK-7.QK)-(2.QK-5.QK)

{p 0 7}{space 1}{text:( 1)}{space 1}{space 1}{res}- 2.QK + 4.QK + 5.QK - 7.QK = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      report{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0341392{col 26}{space 2} .0211085{col 37}{space 1}    1.62{col 46}{space 3}0.106{col 54}{space 4}-.0072419{col 67}{space 3} .0755203
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}D:\Dropbox\Tradeoff replication\Stata_log.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}29 Jan 2023, 15:25:50
{txt}{.-}
{smcl}
{txt}{sf}{ul off}